package com.aboat;

import com.aboat.model.RunCraet;
import com.aboat.view.WindowFrame;
import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;

import javax.swing.*;
import javax.swing.plaf.InsetsUIResource;
import java.awt.*;

/**
 * 主方法
 *
 * @author aboat
 * @email clear_windy@yeah.net
 * @create 2017-03-31 20:47
 */
public class Application {
    public static Frame sFrame;
    public static void main(String[] arge){
        try
        {
            org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
            //UIManager.put("RootPane.setupButtonVisible", false);

            BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.osLookAndFeelDecorated;
            BeautyEyeLNFHelper.launchBeautyEyeLNF();
            UIManager.put("RootPane.setupButtonVisible", false);
            UIManager.put("TabbedPane.tabAreaInsets", new InsetsUIResource(0,0,0,0));
            UIManager.put("TabbedPane.contentBorderInsets", new InsetsUIResource(0,0,2,0));
            UIManager.put("TabbedPane.tabInsets", new InsetsUIResource(3,10,9,10));
            Font frameTitleFont = (Font)UIManager.get("InternalFrame.titleFont");
            frameTitleFont = frameTitleFont.deriveFont(Font.PLAIN);
            UIManager.put("InternalFrame.titleFont", frameTitleFont);
        }
        catch(Exception e)
        {
            //TODO exception
        }

        sFrame = new WindowFrame();
    }
}
